package com.yc.navy.blog.blog.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public class ResultEnum {
    ERROR(500,"错误"),
    CODE_ERROR(code: 510, msg: "验证码错误"),
    CODE_TIMEOUT(code: 511, msg: "验证码已过期"),
    CHECK_ERROR(code: 520, msg: "数据格式验证失败"),
    LOGIN_ERROR(code: 530, msg: "登录失败"),
    LOGIN_TIMEOUT(code: 531, msg: "登录已过期"),
    DATA_NULL(code: 600, msg: "暂无数据"),
    SUCCESS(code: 200, msg: "成功");

    private Integer code;
    private String msg;
}
